package core;

import java.io.Serializable;

public class UnitConnection implements Serializable{
	private Unit source;
	private Unit target;
	private String sPort;
	private String tPort;
	
	public UnitConnection(Unit source, String sPort, Unit target, String tPort){
		this.source = source;
		this.target = target;
		this.sPort = sPort;
		this.tPort = tPort;
	}
	
	public Unit getTarget() {
		return target;
	}
	public String getTPort() {
		return tPort;
	}
	@Override
	public String toString() {
		return null;
	}

	public String getSPort() {
		return sPort;
	}

	public Unit getSource() {
		return source;
	}
	
}
